package com.project.restaurant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* <p>
*
* </p>
*
* @author 作者
* @since 2022-10-11
*/
@Getter
@Setter
@Accessors(chain = true)
public class User extends Model<User> {

  private static final long serialVersionUID = 1L;

  /**
  * 用户id
  */
  @TableId(value = "user_id", type = IdType.ASSIGN_ID)
  private Long userId;

  /**
  * 用户名
  */
  private String userName;

  /**
  * 用户头像
  */
  private String userAvatar;

  /**
  * 用户性别(0：女、1：男)
  */
//  @TableField(jdbcType = JdbcType.BIT,typeHandler = UseSexTypeHandler.class)
  private boolean sex;

  /**
  * 账户
  */
  private String account;

  /**
  * 密码
  */
  private String password;

  /**
  * 个性签名
  */
  private String individualitySignature;

  /**
  * 用户的邮箱
  */
  private String userEmail;

  /**
  * 用户的手机号
  */
  private String userPhone;


  @Override
  public Serializable pkVal() {
    return this.userId;
  }

}
